<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="/WEB-INF/jstl/c.tld" prefix="c" %>
<%@ taglib uri="/WEB-INF/jstl/fn.tld" prefix="fn" %>
<!-- 显示信息相关 -->
<c:choose>
	  	<c:when test="${empty member }">
		  	<div class="modal-body  onedivPro">
		  		<h3>还没有<a href="<%=basePath%>login">登录</a>。。。</h3>
		  	</div>
			<div class="modal-footer">
		 		<button class="btn" data-dismiss="modal" aria-hidden="true">关闭</button>
			</div>
		</c:when>
		<c:otherwise>
			<!-- 直接购买 form -->
			<form class="form-signin" action="<%=basePath%>order/build" method="post">
				<div class="modal-body  onedivPro">
				<!-- 指明是直接购买 -->
				<input type="hidden" name="oper" value="justBuyOne"/>
				<input type="hidden" name="gid" class="oneinput" value="${oneGoods.id}" readonly="readonly"   >
			  		<div class="control-group">
		        		<span class="z5">商品名称</span>
		        		<input type="text" name="name" class="oneinput" value="${oneGoods.name}" readonly="readonly"   >
		       		 </div>
		       		 <div class="control-group">
		        		<span class="z5">商品单价</span>
		        		<input type="text" name="price" class="oneinput" value="${oneGoods.price}" readonly="readonly"   >
		       		 </div>
				 	<div class="control-group">
		        		<span class="z5">选择数量</span>
		        		<input type="text" name="num" class="oneinput"  placeholder="输入购买数量" required autofocus>
		       		 </div>
		  		</div>
	       		<div class="modal-footer">
		 		 <button class="btn btn-large btn-success btn-block" type="submit">确认购买</button>
				</div>
			</form>
		</c:otherwise>
</c:choose>